/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

a {
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

a:hover {
  color: #1e63b0;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1e63b0;
  color: #1e63b0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  font-size: 22px;
}

/* 头部样式 */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: 50px;
  height: 50px;
}

.logo h1 {
  font-size: 22px;
  color: #1e63b0;
  font-weight: bold;
}

.logo-subtitle {
  font-size: 12px;
  color: #666;
  margin-top: 3px;
}

.search-box {
  display: flex;
  align-items: center;
}

.search-box input {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  width: 250px;
  font-size: 14px;
  transition: all 0.3s;
}

.search-box input:focus {
  border-color: #1e63b0;
  outline: none;
}

.search-box button {
  padding: 10px 15px;
  background-color: #1e63b0;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: all 0.3s;
}

.search-box button:hover {
  background-color: #154b8a;
}

/* 导航栏样式 */
.main-nav {
  background: linear-gradient(135deg, #1e63b0, #2a7ad1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-nav ul {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: flex;
  align-items: center;
  padding: 15px 25px;
  color: white;
  font-size: 16px;
  transition: all 0.3s;
  gap: 8px;
}

.main-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.main-nav a i {
  font-size: 14px;
}

/* 主要内容区样式 */
.main-content {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 15px;
}

/* 新闻版块样式 */
.news-section {
  margin-bottom: 40px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.news-item {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.news-header i {
  color: #1e63b0;
  font-size: 18px;
}

.news-header h3 {
  font-size: 18px;
  color: #1e63b0;
}

.news-item ul {
  flex-grow: 1;
}

.news-item li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #eee;
}

.news-item li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.news-item a {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #555;
}

.news-item a:hover {
  color: #1e63b0;
}

.news-date {
  display: inline-block;
  width: 40px;
  color: #888;
  font-size: 12px;
}

.more-link {
  display: block;
  text-align: right;
  font-size: 13px;
  color: #888;
  margin-top: 10px;
}

.more-link:hover {
  color: #1e63b0;
}

/* 公告版块样式 */
.notice-section {
  margin-bottom: 40px;
}

.notice-container {
  display: flex;
  gap: 20px;
}

.notice-list {
  flex: 1;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.notice-list li {
  padding: 12px 0;
  border-bottom: 1px dashed #eee;
}

.notice-list li:last-child {
  border-bottom: none;
}

.notice-list a {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 15px;
}

.notice-date {
  color: #888;
  font-size: 13px;
  width: 50px;
}

.notice-title {
  flex: 1;
}

.new-badge {
  background-color: #ff4d4f;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 10px;
}

.notice-image {
  width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.notice-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 主内容区样式 */
.content-section {
  margin-bottom: 40px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.content-item {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.content-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content-icon {
  width: 60px;
  height: 60px;
  background-color: #f0f7ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.content-icon i {
  font-size: 24px;
  color: #1e63b0;
}

.content-item h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #1e63b0;
}

.content-item li {
  margin-bottom: 10px;
  text-align: left;
}

.content-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
}

.content-item a:hover {
  color: #1e63b0;
}

.content-item a i {
  font-size: 10px;
  color: #1e63b0;
}

/* 专题网站版块样式 */
.special-section {
  margin-bottom: 40px;
}

.special-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.special-item {
  background-color: #fff;
  padding: 20px 15px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.special-item:hover {
  background-color: #1e63b0;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.special-item i {
  font-size: 24px;
  color: #1e63b0;
}

.special-item:hover i {
  color: white;
}

.special-item span {
  font-size: 14px;
}

/* 页脚样式 */
.footer {
  background: linear-gradient(135deg, #1a1a1a, #333);
  color: #fff;
  padding: 40px 0 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-info {
  text-align: center;
  margin-bottom: 20px;
  color: #aaa;
  font-size: 14px;
}

.footer-info p {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.copyright {
  text-align: center;
  color: #888;
  font-size: 13px;
  padding-top: 20px;
  border-top: 1px solid #444;
}

.copyright p {
  margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .special-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .notice-container {
    flex-direction: column;
  }

  .notice-image {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .logo {
    flex-direction: column;
    text-align: center;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .main-nav ul {
    flex-wrap: wrap;
  }

  .main-nav li {
    width: 50%;
    text-align: center;
  }

  .special-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .special-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}
